import hCore, { store } from "hui-core";
import "./reset.css";
import routes from "@/router"

import Vue from "vue"
import hui from "h_ui"
import "h_ui/dist/h_ui.min.css"

import "./styles/index.scss";
import "@/icons" // global icon'

import Vant from 'vant'
import 'vant/lib/index.css'

import { URL_link } from './constant/url.js'

import { useGet, usePost} from "@/utils/request";
import { PUBLIC, navigateFun} from "@/utils/common-func";
import '@/utils/directives.js'

Vue.use(hui)
Vue.use(Vant)

Vue.prototype.$url= URL_link // 网络请求链接
Vue.prototype.$usePost = usePost
Vue.prototype.$useGet = useGet
Vue.prototype.$public = PUBLIC
Vue.prototype.$navigateFun = navigateFun

const app = hCore({
  extraModelOptions: {
    store,
  },
});

app.addRoutes(routes);
app.start();
